from django.contrib import admin

from .models import Realtor
# Register your models here.

class RealtorAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'email', 'hire_date', 'is_mvp')
    list_display_links = ('id', 'name')
    list_editable = ('is_mvp',) #定义可编辑
    search_fields = ('name',) #定义可搜索
    list_per_page = 25 #定义每页显示条数 

admin.site.register(Realtor, RealtorAdmin)